package com.qbgs.base;




/**
 * 返回实体类(简易版本)
 * @author lyh
 * @version 2013-10-30
 * @see SimpleBaseResult
 * @since
 */
public class SimpleBaseResult
{

    /**
     * 成功失败标识
     */
    private boolean success = true;

    /**
     * 返回提示消息
     */
    private String opMsg = "";

    /**
     * 构造器
     */
    public SimpleBaseResult()
    {

    }

    /**
     * 构造器
     * @param success
     * @param opMsg
     */
    public SimpleBaseResult(boolean success, String opMsg)
    {
        super();
        this.success = success;
        this.opMsg = opMsg;
    }

    @Override
    public String toString()
    {
        StringBuilder builder = new StringBuilder();
        builder.append("SimpleBaseResult [success=").append(success).append(", opMsg=").append(
            opMsg).append("]");
        return builder.toString();
    }

    //setter getter
    public boolean isSuccess()
    {
        return success;
    }

    public void setSuccess(boolean success)
    {
        this.success = success;
    }

    public String getOpMsg()
    {
        return opMsg;
    }

    public void setOpMsg(String opMsg)
    {
        this.opMsg = opMsg;
    }

}
